/*
 * @(#)SeverityType.java
 * Date 2013-09-21
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.exception;

/**
 * Enum description
 *
 */
public enum SeverityType implements ISeverityType {

    Warning, Error;

    /**
     * Method description
     *
     *
     * @return
     */
    @Override
    public String getCode() {

        return this.name();
    }

    /**
     * Method description
     *
     *
     * @return
     */
    @Override
    public boolean isError() {

        return (equals(SeverityType.Error));
    }

    /**
     * Method description
     *
     *
     * @return
     */
    @Override
    public boolean isWarning() {

        return (equals(SeverityType.Warning));
    }
}
